From 7c9080e2bd3f1008cef924b757d6faba657376ba Mon Sep 17 00:00:00 2001 From: klutzy Date: Fri, 19 Sep 2014 02:34:35 +0900 Subject: [PATCH] Fix `make install` on Windows Since `Makefile` passes `--destdir="$$(DESTDIR)/"` to `install.sh`, `make install` tries to install libraries to `$CFG_DESTDIR$CFG_PREFIX/$CFG_LIBDIR_RELATIVE` which is usually `//path/to/usr/$CFG_LIBDIR_RELATIVE`. The POSIX spec [1] states that if path begins with `//` it is implementation-defined. Usual systems treat them as normal abaolute path, but cygwin and MSYS does not! They use `//hostname/path` syntax for network drives. This caused `make install` issue on Windows. This patch removes `/` of destdir to solve the issue. [1]: http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_12 --- Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 32080c892..24005dc07 100644 --- a/Makefile.in +++ b/Makefile.in @@ -174,7 +174,7 @@ endif install-$(1): prepare-manifest-$(1) $$(PKGDIR_$(1))/install.sh \ --prefix="$$(CFG_PREFIX)" \ - --destdir="$$(DESTDIR)/" $$(MAYBE_DISABLE_VERIFY) + --destdir="$$(DESTDIR)" $$(MAYBE_DISABLE_VERIFY) endef $(foreach target,$(CFG_TARGET),$(eval $(call DO_DIST_TARGET,$(target)))) -- 2.30.2